package com.icode.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.icode.common.utils.PageUtils;
import com.icode.gulimall.order.entity.OrderEntity;
import com.icode.gulimall.order.vo.FareVo;
import com.icode.gulimall.order.vo.OrderConfirmVo;
import com.icode.gulimall.order.vo.OrderSubmitVo;
import com.icode.gulimall.order.vo.SubmitOrderResponseVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author my_code
 * @email my_code@foxmail.com
 * @date 2021-01-20 17:27:13
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo orderSubmit(OrderSubmitVo submitVo);

    FareVo getFare(Long addrId);

    OrderEntity getOrderInfoByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);
}

